-- GENERATED SPELL FOR [Ironspine Gazer] --


function spell0_19730(pUnit, Event) --@Hypnotic Gaze,n/a--
pUnit:FullCastSpellOnTarget(35313,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19730', 6000, 1)
end

function spell1_19730(pUnit, Event) --@Threshalisk Charge,n/a--
pUnit:FullCastSpellOnTarget(35385,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19730', 671, 1)
end

function Sorts_19730(pUnit, Event)
local choix_sorts_19730 = math.random(0, 1)
if choix_sorts_19730 == 0 then
pUnit:RegisterEvent('spell0_19730', 1, 1)
end
if choix_sorts_19730 == 1 then
pUnit:RegisterEvent('spell1_19730', 1, 1)
end
end

function mob19730_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19730', math.random(1500, 3000), 1)
end

function mob19730_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19730_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19730_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19730, 1, 'mob19730_Action')
RegisterUnitEvent(19730, 2, 'mob19730_Leave')
RegisterUnitEvent(19730, 3, 'mob19730_Kill')
RegisterUnitEvent(19730, 4, 'mob19730_Die')
